class HttpApi {
  static const String users = 'ip.html';
  static const String denglu = 'denglu.html';
  static const String phoneregcode = 'phoneregcode.html';
  static const String viplevel = 'viplevel.html';
  static const String zhuce = 'zhuce.html';
  static const String tjrfcget = 'tjrfcget.html';
  static const String getdwzurl = 'getdwzurl.html';
  static const String tixian = 'tixian.html';
  static const String getfreevip = 'getfreevip.html';
  static const String getimg = 'getimg.html';
  static const String jine = 'jine.html';
  static const String chaxun = 'chaxun.html';
}

enum Method { get, post, put, patch, delete, head }

/// 使用拓展枚举替代 switch判断取值
/// https://zhuanlan.zhihu.com/p/98545689
extension MethodExtension on Method {
  String get value => ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'HEAD'][index];
}